<?php 
include 'function.php';
$from=$_POST["from"];
$to=$_POST["to"];
$content=$_POST["content"];
$bgId=$_POST["select"];
$insertId=addInfo($from,$to,$content,$bgId);
echo $insertId;
print_r($_POST);
$url="background".$bgId.".php?object=$to&text=$content&name=$from";
header("Location: $url"); 
 ?>